package com.ruoyi.basedata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 盖亚组织对象 t_wfz_gybaseunit
 * 
 * @author xiefeng
 * @date 2022-12-06
 */
public class WfzGybaseunit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long fid;

    /** 组织编码 */
    @Excel(name = "组织编码")
    private String fnumber;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String fname;

    /** 上级组织ID */
    @Excel(name = "上级组织ID")
    private String fparentid;

    /** 上级组织编码 */
    @Excel(name = "上级组织编码")
    private String fparentnumber;

    /** 上级组织名称 */
    @Excel(name = "上级组织名称")
    private String fparentname;

    /** 组织层级 */
    @Excel(name = "组织层级")
    private Long flevel;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer fisenable;

    /** 是否叶子节点 */
    @Excel(name = "是否叶子节点")
    private Integer fisleaf;

    /** 制单人 */
    @Excel(name = "制单人")
    private String fcreator;

    /** 制单时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "制单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fcreatetime;

    /** 最后修改人 */
    @Excel(name = "最后修改人")
    private String flastupdateuser;

    /** 最后修改时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
            //尝试使用新的时间转换格式
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date flastupdatetime;

    /** 状态 */
    @Excel(name = "状态")
    private String fstate;

    public void setFid(Long fid)
    {
        this.fid = fid;
    }

    public Long getFid()
    {
        return fid;
    }
    public void setFnumber(String fnumber) 
    {
        this.fnumber = fnumber;
    }

    public String getFnumber() 
    {
        return fnumber;
    }
    public void setFname(String fname) 
    {
        this.fname = fname;
    }

    public String getFname() 
    {
        return fname;
    }
    public void setFparentid(String fparentid) 
    {
        this.fparentid = fparentid;
    }

    public String getFparentid() 
    {
        return fparentid;
    }
    public void setFparentnumber(String fparentnumber) 
    {
        this.fparentnumber = fparentnumber;
    }

    public String getFparentnumber() 
    {
        return fparentnumber;
    }
    public void setFparentname(String fparentname) 
    {
        this.fparentname = fparentname;
    }

    public String getFparentname() 
    {
        return fparentname;
    }
    public void setFlevel(Long flevel) 
    {
        this.flevel = flevel;
    }

    public Long getFlevel() 
    {
        return flevel;
    }
    public void setFisenable(Integer fisenable) 
    {
        this.fisenable = fisenable;
    }

    public Integer getFisenable() 
    {
        return fisenable;
    }
    public void setFisleaf(Integer fisleaf) 
    {
        this.fisleaf = fisleaf;
    }

    public Integer getFisleaf() 
    {
        return fisleaf;
    }
    public void setFcreator(String fcreator) 
    {
        this.fcreator = fcreator;
    }

    public String getFcreator() 
    {
        return fcreator;
    }
    public void setFcreatetime(Date fcreatetime) 
    {
        this.fcreatetime = fcreatetime;
    }

    public Date getFcreatetime() 
    {
        return fcreatetime;
    }
    public void setFlastupdateuser(String flastupdateuser) 
    {
        this.flastupdateuser = flastupdateuser;
    }

    public String getFlastupdateuser() 
    {
        return flastupdateuser;
    }
    public void setFlastupdatetime(Date flastupdatetime) 
    {
        this.flastupdatetime = flastupdatetime;
    }

    public Date getFlastupdatetime() 
    {
        return flastupdatetime;
    }

    public String getFstate() {
        return fstate;
    }

    public void setFstate(String fstate) {
        this.fstate = fstate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fid", getFid())
            .append("fnumber", getFnumber())
            .append("fname", getFname())
            .append("fparentid", getFparentid())
            .append("fparentnumber", getFparentnumber())
            .append("fparentname", getFparentname())
            .append("flevel", getFlevel())
            .append("fisenable", getFisenable())
            .append("fisleaf", getFisleaf())
            .append("fcreator", getFcreator())
            .append("fcreatetime", getFcreatetime())
            .append("flastupdateuser", getFlastupdateuser())
            .append("flastupdatetime", getFlastupdatetime())
            .append("fstate",getFstate())
            .toString();
    }
}
